package com.example.buildtable.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(autoResultMap = true)
public class Newsreport {
    @TableId(type = IdType.AUTO)
    private Integer newsId;
    @TableField(value="news_column_id", target = Columns.class)
    private Integer newsColumnId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private Columns column;
    private String newsTitle;
    private Integer newsRecommend;
    private Integer newsHomeDisplay;
    private String newsAuthor;
    private String newsThumbnail;
    private String newsContent;
    private Integer status;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private String remark;
}
